import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询水票码详情列表
export function listWaterbillcodedetail(query) {
  return request({
    url: '/business/waterbillcodedetail/list',
    method: 'get',
    params: query
  })
}

// 查询水票码详情详细
export function getWaterbillcodedetail(id) {
  return request({
    url: '/business/waterbillcodedetail/' + parseStrEmpty(id),
    method: 'get'
  })
}

// 新增水票码详情
export function addWaterbillcodedetail(data) {
  return request({
    url: '/business/waterbillcodedetail',
    method: 'post',
    data: data
  })
}

// 修改水票码详情
export function updateWaterbillcodedetail(data) {
  return request({
    url: '/business/waterbillcodedetail',
    method: 'put',
    data: data
  })
}

// 删除水票码详情
export function delWaterbillcodedetail(id) {
  return request({
    url: '/business/waterbillcodedetail/' + id,
    method: 'delete'
  })
}
